from machine import Pin,SoftI2C
from SSD1306 import SSD1306_I2C

scl = Pin('PC6')
sda = Pin('PC7')
i2c = SoftI2C(scl, sda)
print(i2c.scan())

oled_width = 128
oled_height = 64
oled = SSD1306_I2C(oled_width, oled_height, i2c)

oled.fill(0) # 清屏
oled.text('Hello, World 1!', 0, 0)
oled.text('Hello, World 2!', 0, 10)
oled.text('Hello, World 3!', 0, 20)
        
oled.show()